package oberver.javaexample;

/**
 * @Author：LJ
 * @Description：
 * @Date: 2017/11/28
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        HanFeiZi2 hanFeiZi2 = new HanFeiZi2();
        LiSi2 liSi2 = new LiSi2();
        hanFeiZi2.addObserver(liSi2);
        hanFeiZi2.haveBreakfast();
        hanFeiZi2.haveFun();
    }
}
